package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_cmiAttributePagination_2 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$

    public _jet_cmiAttributePagination_2() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_9 = new TagInfo("c:get", //$NON-NLS-1$
            1, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_9); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_9.setRuntimeParent(null);
        _jettag_c_get_1_9.setTagInfo(_td_c_get_1_9);
        _jettag_c_get_1_9.doStart(context, out);
        _jettag_c_get_1_9.doEnd();
        out.write(".base.bean;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("public class CmiAttributePagination {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        int paginationSize;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        int beginPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        int currentPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        int totalPaginations;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        int totalRecords;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public CmiAttributePagination() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this(10, 1, 1, 1, 0);");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public CmiAttributePagination(int paginationSize, int beginPage, int currentPagination, int totalPaginations, int totalRecords) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.paginationSize = paginationSize;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.beginPagination = beginPage;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.currentPagination = currentPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.totalPaginations = totalPaginations;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.totalRecords = totalRecords;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        @Override");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        public String toString() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            return \"CmiAttributePagination [paginationSize=\" + paginationSize + \", beginPagination=\" + beginPagination + \", currentPagination=\" + currentPagination");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("                    + \", totalPaginations=\" + totalPaginations + \", totalRecords=\" + totalRecords + \"]\";");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public int getPageSize() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            return paginationSize;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public void setPageSize(int paginationSize) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.paginationSize = paginationSize;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public int getBeginPagination() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            return beginPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public void setBeginPagination(int beginPage) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.beginPagination = beginPage;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public int getCurrentPagination() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            return currentPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public void setCurrentPagination(int currentPagination) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.currentPagination = currentPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public int getTotalPage() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            return totalPaginations;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public void setTotalPage(int totalPaginations) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.totalPaginations = totalPaginations;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public int getTotalRecords() {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            return totalRecords;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("        public void setTotalRecords(int totalRecords) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("            this.totalRecords = totalRecords;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("}");  //$NON-NLS-1$        
    }
}
